package day11;

/**
 * @author oldliu
 * @since 1.0
 */
public class MouseTest {
    public static void main(String[] args) {
        System.out.println("usb设备的电压是："+Usb.V);//说明他是static
        //Usb.V=4.6;//报错，说明他是final
        Mouse m=new Mouse("雷蛇",199);
        System.out.println(m);
        m.poweron();
        m.move();
        m.drag("敢死队4.mp4");
        m.poweroff();
        System.out.println(">>>>>>>>>>>>");
        Usb m2=new Mouse("双飞燕",29);
        System.out.println(m2);
        m2.poweron();
       // m2.move();//error
        //m2.drag("敢死队4.mp4");
        Mouse m3=(Mouse)m2;
        m3.move();
        m3.drag("laohu.mp3");
        m2.poweroff();
    }
}
